package org.JQbitorrentClinet.request.torrentmanagement;

import com.google.gson.reflect.TypeToken;
import lombok.Builder;
import org.JQbitorrentClinet.base.BasePostUrlEncodedParam;

import java.util.Map;

@Builder
public class GetTorrentUploadLimitParam extends BasePostUrlEncodedParam {
    String[] hashes;

    public GetTorrentUploadLimitParam(String[] hashes) {
        this.hashes = hashes;
        responseType= new TypeToken<Map<String,Long>>(){}.getType();
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/torrents/uploadLimit";
    }
}
